package tech.aistar.service;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import tech.aistar.entity.Questionpaper;
import tech.aistar.service.impl.QuestionpaperServiceImpl;

import java.util.List;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:spring/spring-*.xml"})
public class testQuestionpaperService {

    @Autowired
    private QuestionpaperServiceImpl questionpaperService;

    @Test
    public void testfindAll(){
        List<Questionpaper> questionpaperList = questionpaperService.findAll();
        System.out.println(questionpaperList);
    }

    @Test
    public void testfindById(){
        List<Questionpaper> questionpaperList = questionpaperService.findById(1L);
        System.out.println(questionpaperList);
    }

    @Test
    public void testcountType(){
        Long countType = questionpaperService.countType(1L, 1L);
        System.out.println(countType);
    }





}
